package com.enjoyor.soa.traffic.server.efoms.dubbo.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.enjoyor.soa.traffic.api.dto.efoms.WorkordersRecordInfoDto;
import com.enjoyor.soa.traffic.api.service.dubbo.efoms.IDubboWorkordersRecordService;
import com.enjoyor.soa.traffic.server.efoms.dubbo.manage.ManageWorkordersRecordService;
import com.enjoyor.soa.traffic.util.pojo.ResultPojo;

@SuppressWarnings("rawtypes")
@Service(version = "1.0.0", timeout = 4000)
public class DubboWorkordersRecordService implements IDubboWorkordersRecordService {
	
	@Autowired
	private ManageWorkordersRecordService manageWorkordersRecordService;
    
    @Override
    public ResultPojo insertWorkordersRecord(WorkordersRecordInfoDto workordersRecordDto, String isRecover, 
    		String roleName, String personName) {
		ResultPojo resultPojo = manageWorkordersRecordService.insertWorkordersRecord(workordersRecordDto,
				isRecover, roleName, personName);
    	return resultPojo;
    }   
    
    @Override
    public ResultPojo getNextProcess(String workordersId) {
    	ResultPojo resultPojo = manageWorkordersRecordService.getNextProcess(workordersId);
		return resultPojo;
    }
    
}
